#include <iostream>
#include < >
using namespace std;

int main(int argc, char const *argv[])
{
	
	int nums[]={1,2,3,4,5,6,7};
	int n=7;
	int k=3;


while( k-- >0 )
{
	    int tmp=*(nums+n-1);
	for (int i = n-1; i > 0; --i)
	{			
		nums[i]=nums[i-1];
	}
	nums[0]=tmp;

}

for (int i = 0; i < n; ++i)
{
	cout<<nums[i]<<",";
}








	return 0;
}
